home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / kh_gdi.zip / KH_GDI / TRIGON.H < prev   
C/C++ Source or Header  |  1996-05-04  |  411b  |  17 lines

  1. #ifndef __TRIGONOMETRY_H_
  2. #define __TRIGONOMETRY_H_
  3.  
  4. /* This file contains simplified but quick trigonometry.
  5.    sin() and cos() returns 1000 * ::sin() or 1000 * ::cos()
  6. */
  7.  
  8. struct _export Trigonometry
  9.      {
  10.     int* sin_table;
  11.     Trigonometry();
  12.     ~Trigonometry() { delete sin_table;    }
  13.     int sin(int alpha);
  14.     int cos(int alpha) { return sin(90 - alpha); }
  15.     };
  16.  
  17. #endif __TRIGONOMETRY_H_